<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>找回密码 - {:configure('website.webName')}</title>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<link rel="stylesheet" href="/static/wendasns/css/layui.css">
</head>

<body style="background-color: #f2f2f2;">
<div class="layui-container"> 
<div class="layui-row" style="padding: 10px;">
  <div class="layui-card">
    <div class="layui-card-header">找回密码</div>
    <div class="layui-card-body">
{if request()->action(1) eq 'index'}
    	<blockquote class="layui-elem-quote layui-quote-nm">
            请您填写需要找回密码的帐号
          </blockquote>
          
       <form class="layui-form" action="{:url('ucentre/forget/check')}" method="post">

            <div class="layui-form-item">
              <label class="layui-form-label">用户名</label>
              <div class="layui-input-inline">
                <input type="text" name="username" value="" lay-verify="required" autocomplete="off" class="layui-input">
              </div>
              <div class="layui-form-mid layui-word-aux"></div>
            </div>

            <div class="layui-form-item">
              <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="J_submit">下一步</button>
              </div>
            </div>
          </form>
{/if}

{if request()->action(1) eq 'check'}
    	<blockquote class="layui-elem-quote layui-quote-nm">
            通过邮箱找回密码
          </blockquote>
       <form class="layui-form" action="{:url('ucentre/forget/send')}" method="post">

            <div class="layui-form-item">
              <label class="layui-form-label">用户名</label>
              <div class="layui-input-inline">
                <input type="text" name="username" value="{$username}" autocomplete="off" class="layui-input layui-disabled" readonly>
              </div>
              <div class="layui-form-mid layui-word-aux">对应的注册邮箱为：{$email}</div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label">注册邮箱</label>
              <div class="layui-input-inline">
                <input type="text" name="email" value="" lay-verify="email" autocomplete="off" class="layui-input">
              </div>
              <div class="layui-form-mid layui-word-aux"></div>
            </div>
            
            <div class="layui-form-item">
              <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="J_submit">验证</button> 
                <a href="javascript:history.go(-1);" style="margin-left: 10px;">返回上一步</a>
              </div>
            </div>
          </form>
{/if}

{if request()->action(1) eq 'send'}
<div style="color: #598403;padding: 10px;font-size: 18px;">我们已经发送邮件至您的邮箱，请在24小时内通过邮件内的链接继续设置新的密码。</div>
<blockquote class="layui-elem-quote layui-quote-nm">
提示：<br>
若您长时间未收到邮件，请检查您的垃圾箱或广告箱，邮件有可能被误认为垃圾或广告邮件。<br>
如果您一直未收到邮件，请重新尝试<a href="{:url('ucentre/forget/index')}">找回密码。</a><br>
如果您连续多次申请找回密码，请以最新收到的邮件为准！
</blockquote>
{/if}

{if request()->action(1) eq 'resetpwd'}
    	<blockquote class="layui-elem-quote layui-quote-nm">
            验证通过，请设置新密码。
          </blockquote>
       <form class="layui-form" action="" method="post">

            <div class="layui-form-item">
              <label class="layui-form-label">用户名</label>
              <div class="layui-input-inline">
                <input type="text" name="username" value="{$username}" autocomplete="off" class="layui-input layui-disabled" readonly>
              </div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label">新密码</label>
              <div class="layui-input-inline">
                <input type="password" name="password" value="" lay-verify="required" autocomplete="off" class="layui-input">
              </div>
              <div class="layui-form-mid layui-word-aux"></div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label">确认密码</label>
              <div class="layui-input-inline">
                <input type="password" name="repassword" value="" lay-verify="required" autocomplete="off" class="layui-input">
              </div>
              <div class="layui-form-mid layui-word-aux"></div>
            </div>
            
            <div class="layui-form-item">
              <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="J_submit">完成</button>
              </div>
            </div>
          </form>
{/if}
    </div>
  </div>
  

</div>
</div>
<script src="/static/wendasns/layui.all.js"></script>
<script type="text/javascript">
;!function(){
  var $ = layui.$
  ,layer = layui.layer
  ,form = layui.form;
    
}();
</script>
</body>
</html>